<template>
  <el-button @click="clickCount" type="primary">Count</el-button>
  <el-button @click="clickReset" type="primary">Reset</el-button>
  <Pinia2></Pinia2>
  <div class="mt-5">{{ store.count }}</div>
</template>

<script setup>
import { onMounted } from "vue";
import { pinia } from "../../store/pinia";
import Pinia2 from "./Pinia2.vue";

const store = pinia();

function clickCount() {
  store.count++;
}

function clickReset() {
  store.$reset();
}

onMounted(() => {});
</script>
